package main
import "fmt"
func main() {
  var n = 100
  var num int
  var count int
Loop:
  for {
    fmt.Println("前面")
    fmt.Scanf("%d",&num)
    fmt.Println("后面")
    switch {
    case num == n:
      fmt.Println("答对了,程序退出")
      count+=1
      break Loop
    case num < n:
      fmt.Println("小了")
      count += 1
    case num > n:
      fmt.Println("大了")
      count += 1
    }
  }
  fmt.Println(count)
}